<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,minimal-ui"/>
    <title>系统维护中...</title>
    <script type="text/javascript" src="./js/jquery.js"></script>
    <style>
        body{
            background-color: #000;
            color: #fff;
        }
    </style>
</head>
<body>
    <div style="width: 80%;margin:  10% auto 5% auto">
        <img style="width: 100%" src="./img/icon.png" alt="">
    </div>
    <div id="info" style="color: #ffde99;font-size: 20px;width: 80%;margin: 0 auto">
        维护通知：为了更好的为您服务，本站正在升级维护中，因此带来不便深表歉意
    </div>




    <div id="kefu" style="width: 70%;position: fixed;bottom: 15%;left: 15%">
        <img style="width: 100%" src="./img/kefu.png" alt="">
        <p style="width: 60%;margin: 1% auto;color: #fff;font-size: 15px;">若有疑问，请联系客服</p>
    </div>

    <div style="color: #fff;font-size: 16px;width: 90%;position: fixed;bottom: 8%;left: 11%;text-align: left;">
        预计完成升级时间：<span id="time"></span>
    </div>

</body>
<script src="js/jquery.cookie.js"></script>
<script>
    var kefu = 'https://szzero.livechatvalue.com/chat/chatClient/chatbox.jsp?companyID=1218810&configID=65028&jid=7895663198&s=1';
    $('#kefu').click(function () {
        window.location.href = kefu;
    });
    $(function () {
        var time = $.cookie('sy_now_times');
        var today = new Date();
        if(time == null){
            var showTime = getShowTime();
            $.cookie('sy_now_times',showTime);
            $.cookie('sy_times',getNowTime());
            $('#time').html(showTime);
        }else{
            var times = $.cookie('sy_times');
            var nowTime = getNowTime() ;
           if(nowTime - times > 3600){
               var showTime = getShowTime();
               $.cookie('sy_now_times',showTime);
               $.cookie('sy_times',nowTime);
               $('#time').html(showTime);
           }else{
               $('#time').html(time);
           }
        }
    });

    function  getNowTime() {
        return Date.parse(new Date())/1000;
    }


    function getShowTime() {
        var today=new Date();//获取当前时间(没有格式化)
        var year=today.getFullYear(); //获取年份,四位数
        var month=today.getMonth()+1; //获取月份,0-11
        var day=today.getDate(); //获取几号
        var h = today.getHours();
        var min = today.getMinutes();
        var hstr = h.toString();
        var showTime = year+'-'+month+'-'+day+' '+((hstr*1)+1)+':'+min;
        return showTime;
    }
</script>
</html>